#include "EagleMainFrame.h"
#include <QtWidgets/QApplication>
#include "qtlogger.h"
EagleMainFrame* g_theApp = NULL;
#ifdef STATIC_LIB
#include <QtPlugin>
Q_IMPORT_PLUGIN(QWindowsPrinterSupportPlugin)
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
Q_IMPORT_PLUGIN(QDDSPlugin)
Q_IMPORT_PLUGIN(QICNSPlugin)
Q_IMPORT_PLUGIN(QICOPlugin)
Q_IMPORT_PLUGIN(QTgaPlugin)
Q_IMPORT_PLUGIN(QTiffPlugin)
Q_IMPORT_PLUGIN(QWbmpPlugin)
Q_IMPORT_PLUGIN(QWebpPlugin)

#endif

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	EagleMainFrame w;
	g_theApp = &w;

#ifndef _DEBUG
//#if 0
	QtLogger::getLogger()->InitLogger(QtCriticalMsg);
#endif
	w.show();

	return a.exec();
}
